package week9.Q4;

public class ElectricVehicle extends Vehicle implements IPower{


    public ElectricVehicle(String brand,String color){
        super(brand,color);

    }

    @Override
    public void run() {
        System.out.println("一辆"+getBrand());
    }
    public void power(){
        System.out.println("充电");

    }
}
